<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>手工皮革笔记本 - 个性化定制 | SocialSupply</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <!-- 图片查看器 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.1/css/lightgallery-bundle.min.css">
    
    <style>
        :root {
            --primary-color: #3b82f6;
            --primary-light: rgba(59, 130, 246, 0.1);
            --secondary-color: #64748b;
            --light-bg: #f8fafc;
            --border-color: #e2e8f0;
            --success-color: #10b981;
            --danger-color: #ef4444;
            --warning-color: #f59e0b;
            --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
            --hover-shadow: 0 4px 12px rgba(0,0,0,0.12);
            --transition-speed: 0.3s;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f1f5f9;
            color: #1e293b;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1280px;
        }
        
        /* 导航栏样式 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.75rem 0;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary-color);
            text-decoration: none;
        }
        
        .search-container {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 0.5rem 1rem 0.5rem 2.5rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 0.9rem;
        }
        
        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary-color);
        }
        
        .nav-icon {
            font-size: 1.25rem;
            color: var(--secondary-color);
            transition: color var(--transition-speed);
        }
        
        .nav-icon:hover {
            color: var(--primary-color);
        }
        
        /* 主内容区 */
        .main-content {
            padding: 2rem 0;
        }
        
        /* 图片展示区 */
        .image-gallery {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .main-image-container {
            border-radius: 8px;
            overflow: hidden;
            cursor: zoom-in;
        }
        
        .main-image {
            width: 100%;
            height: auto;
            object-fit: cover;
            transition: transform var(--transition-speed);
        }
        
        .main-image:hover {
            transform: scale(1.01);
        }
        
        .thumbnail-gallery {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
        }
        
        .thumbnail-item {
            border-radius: 4px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all var(--transition-speed);
        }
        
        .thumbnail-item:hover, .thumbnail-item.active {
            border-color: var(--primary-color);
        }
        
        .thumbnail-image {
            width: 100%;
            height: 100%;
            aspect-ratio: 1/1;
            object-fit: cover;
        }
        
        /* 供给信息区 */
        .supply-info {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: var(--card-shadow);
        }
        
        .supply-title {
            font-size: 1.75rem;
            font-weight: 600;
            margin-bottom: 1rem;
            line-height: 1.3;
        }
        
        .seller-info {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 0;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        
        .seller-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .seller-details {
            flex: 1;
        }
        
        .seller-name {
            font-weight: 500;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .seller-rating {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            color: var(--warning-color);
            font-size: 0.9rem;
        }
        
        .follow-btn {
            padding: 0.5rem 1.25rem;
            font-weight: 500;
        }
        
        .price-section {
            margin-bottom: 1.5rem;
        }
        
        .price-label {
            font-size: 0.9rem;
            color: var(--secondary-color);
            margin-bottom: 0.25rem;
        }
        
        .price-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--danger-color);
        }
        
        .price-note {
            font-size: 0.9rem;
            color: var(--secondary-color);
            margin-top: 0.25rem;
        }
        
        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .primary-btn {
            flex: 2;
            padding: 0.75rem;
            font-weight: 600;
            font-size: 1.05rem;
        }
        
        .secondary-btn {
            flex: 1;
            padding: 0.75rem;
            font-weight: 500;
        }
        
        .supply-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            font-size: 0.9rem;
            color: var(--secondary-color);
            margin-bottom: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* 详情标签页 */
        .detail-tabs {
            margin-top: 2rem;
        }
        
        .nav-tabs {
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        
        .nav-tabs .nav-link {
            color: var(--secondary-color);
            border: none;
            padding: 0.75rem 1.5rem;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all var(--transition-speed);
        }
        
        .nav-tabs .nav-link:hover {
            color: var(--primary-color);
        }
        
        .nav-tabs .nav-link.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
            background-color: transparent;
        }
        
        .tab-content {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: var(--card-shadow);
        }
        
        .detail-section {
            margin-bottom: 2rem;
        }
        
        .detail-section-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .detail-content {
            line-height: 1.8;
        }
        
        .detail-content p {
            margin-bottom: 1rem;
        }
        
        .feature-list {
            list-style-type: none;
            padding: 0;
        }
        
        .feature-list li {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .feature-list li i {
            color: var(--success-color);
            margin-top: 0.3rem;
        }
        
        /* 评论区 */
        .comments-section {
            margin-top: 2rem;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .comments-count {
            color: var(--secondary-color);
            font-size: 0.95rem;
        }
        
        .comment-form {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: var(--card-shadow);
            margin-bottom: 2rem;
        }
        
        .form-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-textarea {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 1rem;
            min-height: 100px;
            resize: vertical;
            margin-bottom: 1rem;
            transition: all var(--transition-speed);
        }
        
        .comment-textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        
        .form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
        }
        
        .cancel-btn {
            background: none;
            border: none;
            color: var(--secondary-color);
            padding: 0.5rem 1rem;
        }
        
        .submit-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 0.5rem 1.5rem;
            font-weight: 500;
            transition: background-color var(--transition-speed);
        }
        
        .submit-btn:hover {
            background-color: #2563eb;
        }
        
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .comment-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: var(--card-shadow);
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        
        .comment-author {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .author-name {
            font-weight: 500;
        }
        
        .comment-time {
            color: var(--secondary-color);
            font-size: 0.85rem;
        }
        
        .comment-content {
            margin-bottom: 1rem;
            line-height: 1.6;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--secondary-color);
            background: none;
            border: none;
            cursor: pointer;
            transition: color var(--transition-speed);
        }
        
        .comment-action:hover {
            color: var(--primary-color);
        }
        
        .comment-action.liked {
            color: var(--danger-color);
        }
        
        /* 回复区 */
        .replies-container {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
            margin-left: 2rem;
        }
        
        .reply-card {
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .reply-card:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .reply-form {
            margin-top: 1rem;
            display: flex;
            gap: 1rem;
        }
        
        .reply-textarea {
            flex: 1;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.75rem;
            min-height: 80px;
            resize: vertical;
            transition: all var(--transition-speed);
        }
        
        .reply-textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        
        .reply-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        /* 相关推荐 */
        .related-supplies {
            margin-top: 3rem;
        }
        
        .related-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1.5rem;
        }
        
        .related-item {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: transform var(--transition-speed), box-shadow var(--transition-speed);
        }
        
        .related-item:hover {
            transform: translateY(-4px);
            box-shadow: var(--hover-shadow);
        }
        
        .related-image {
            width: 100%;
            aspect-ratio: 4/3;
            object-fit: cover;
        }
        
        .related-info {
            padding: 1rem;
        }
        
        .related-title {
            font-weight: 500;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 40px;
        }
        
        .related-price {
            font-weight: 600;
            color: var(--danger-color);
        }
        
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .action-buttons {
                flex-direction: column;
            }
            
            .primary-btn, .secondary-btn {
                width: 100%;
                flex: none;
            }
            
            .replies-container {
                margin-left: 1rem;
            }
        }
        
        @media (max-width: 768px) {
            .supply-title {
                font-size: 1.5rem;
            }
            
            .price-value {
                font-size: 1.75rem;
            }
            
            .thumbnail-gallery {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .nav-tabs .nav-link {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }
            
            .related-list {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .thumbnail-gallery {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .section-title {
                font-size: 1.25rem;
            }
            
            .comment-actions {
                flex-wrap: wrap;
                gap: 1rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">SocialSupply</a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse justify-content-center" id="navbarContent">
                <div class="d-flex search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索供给、用户或标签...">
                </div>
            </div>
            
            <div class="d-flex gap-3 ms-3">
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-home"></i>
                </a>
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-bell"></i>
                </a>
                <a href="#" class="nav-link nav-icon">
                    <i class="fas fa-user-circle"></i>
                </a>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="main-content">
        <div class="container">
            <div class="row">
                <!-- 左侧图片展示区 -->
                <div class="col-lg-7 mb-4 mb-lg-0">
                    <div class="image-gallery">
                        <div class="main-image-container" id="mainImageContainer">
                            <img src="https://picsum.photos/800/600?random=1" alt="手工皮革笔记本正面展示" class="main-image" id="mainImage">
                        </div>
                        
                        <div class="thumbnail-gallery">
                            <div class="thumbnail-item active">
                                <img src="https://picsum.photos/800/600?random=1" alt="手工皮革笔记本正面展示" class="thumbnail-image" data-img="https://picsum.photos/800/600?random=1">
                            </div>
                            <div class="thumbnail-item">
                                <img src="https://picsum.photos/800/600?random=2" alt="手工皮革笔记本侧面展示" class="thumbnail-image" data-img="https://picsum.photos/800/600?random=2">
                            </div>
                            <div class="thumbnail-item">
                                <img src="https://picsum.photos/800/600?random=3" alt="手工皮革笔记本内页展示" class="thumbnail-image" data-img="https://picsum.photos/800/600?random=3">
                            </div>
                            <div class="thumbnail-item">
                                <img src="https://picsum.photos/800/600?random=4" alt="手工皮革笔记本定制压花展示" class="thumbnail-image" data-img="https://picsum.photos/800/600?random=4">
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 右侧供给信息区 -->
                <div class="col-lg-5">
                    <div class="supply-info">
                        <h1 class="supply-title">手工皮革笔记本 - 个性化定制</h1>
                        
                        <div class="seller-info">
                            <img src="https://picsum.photos/100/100?random=101" alt="张小匠的头像" class="seller-avatar">
                            <div class="seller-details">
                                <div class="seller-name">张小匠</div>
                                <div class="seller-rating">
                                    <i class="fas fa-star"></i>
                                    <span>4.9 (128 评价)</span>
                                </div>
                            </div>
                            <button class="btn btn-outline-primary follow-btn" id="followBtn">
                                <i class="far fa-user-plus me-1"></i> 关注
                            </button>
                        </div>
                        
                        <div class="price-section">
                            <div class="price-label">价格</div>
                            <div class="price-value">¥198.00</div>
                            <div class="price-note">定制内容不同可能导致价格变动</div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="btn btn-primary primary-btn" id="buyBtn">
                                <i class="fas fa-shopping-cart me-2"></i>立即购买
                            </button>
                            <button class="btn btn-outline-primary secondary-btn" id="addCartBtn">
                                <i class="fas fa-plus"></i>
                            </button>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="btn btn-outline-secondary primary-btn" id="likeBtn">
                                <i class="far fa-heart me-2"></i>
                                <span>收藏 (356)</span>
                            </button>
                            <button class="btn btn-outline-secondary secondary-btn" id="shareBtn">
                                <i class="fas fa-share-alt"></i>
                            </button>
                        </div>
                        
                        <div class="supply-meta">
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>2.5k 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-comment"></i>
                                <span>128 评论</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-truck"></i>
                                <span>7天内发货</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>上海</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 详情标签页 -->
            <div class="detail-tabs">
                <ul class="nav nav-tabs" id="detailTabs" role="tablist">
                    <li class="nav-item" role="presentation">
                        <button class="nav-link active" id="description-tab" data-bs-toggle="tab" data-bs-target="#description" type="button" role="tab">商品描述</button>
                    </li>
                    <li class="nav-item" role="presentation">
                        <button class="nav-link" id="specifications-tab" data-bs-toggle="tab" data-bs-target="#specifications" type="button" role="tab">规格参数</button>
                    </li>
                    <li class="nav-item" role="presentation">
                        <button class="nav-link" id="shipping-tab" data-bs-toggle="tab" data-bs-target="#shipping" type="button" role="tab">配送信息</button>
                    </li>
                    <li class="nav-item" role="presentation">
                        <button class="nav-link" id="reviews-tab" data-bs-toggle="tab" data-bs-target="#reviews" type="button" role="tab">买家评价</button>
                    </li>
                </ul>
                
                <div class="tab-content" id="detailTabsContent">
                    <!-- 商品描述 -->
                    <div class="tab-pane fade show active" id="description" role="tabpanel">
                        <div class="detail-section">
                            <h3 class="detail-section-title">产品介绍</h3>
                            <div class="detail-content">
                                <p>全手工制作的真皮笔记本，采用优质头层牛皮，质感细腻，经久耐用。每一本都经过精心制作，从选材到成品都倾注了工匠的心血。</p>
                                
                                <p>笔记本内页采用环保纸张，适合各种笔类书写，不洇墨、不透纸。可根据您的需求定制封面压花文字，打造专属于您的个性化笔记本。</p>
                                
                                <p>无论是用于日常记录、学习笔记还是作为礼品赠送，都是绝佳的选择。每本笔记本都配有精美礼盒包装，送礼更显档次。</p>
                            </div>
                        </div>
                        
                        <div class="detail-section">
                            <h3 class="detail-section-title">产品特点</h3>
                            <ul class="feature-list">
                                <li>
                                    <i class="fas fa-check-circle"></i>
                                    <span>采用优质头层牛皮制作，质感细腻，随着使用会形成独特的包浆</span>
                                </li>
                                <li>
                                    <i class="fas fa-check-circle"></i>
                                    <span>全手工缝制，结实耐用，线迹均匀美观</span>
                                </li>
                                <li>
                                    <i class="fas fa-check-circle"></i>
                                    <span>支持个性化文字压花，可选多种字体和位置</span>
                                </li>
                                <li>
                                    <i class="fas fa-check-circle"></i>
                                    <span>内页采用80g环保米黄色道林纸，保护视力，书写流畅</span>
                                </li>
                                <li>
                                    <i class="fas fa-check-circle"></i>
                                    <span>可选择空白、横线、方格等不同内页样式</span>
                                </li>
                                <li>
                                    <i class="fas fa-check-circle"></i>
                                    <span>尺寸多样，从便携口袋本到标准笔记本尺寸均有提供</span>
                                </li>
                            </ul>
                        </div>
                        
                        <div class="detail-section">
                            <h3 class="detail-section-title">制作工艺</h3>
                            <div class="detail-content">
                                <p>每一本笔记本都经过15道工序手工制作而成：</p>
                                <ol>
                                    <li>精选优质头层牛皮，检查皮革质量</li>
                                    <li>根据尺寸裁剪皮革，确保边缘整齐</li>
                                    <li>手工打磨皮革边缘，使其光滑圆润</li>
                                    <li>根据设计压印图案或文字</li>
                                    <li>手工染色（如需彩色款）</li>
                                    <li>多次上油保养，增强皮革质感和耐用性</li>
                                    <li>裁剪内页纸张，确保尺寸精准</li>
                                    <li>内页装订，确保牢固平整</li>
                                    <li>手工缝制封面与内页</li>
                                    <li>最终检查与调整</li>
                                </ol>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 规格参数 -->
                    <div class="tab-pane fade" id="specifications" role="tabpanel">
                        <div class="detail-section">
                            <h3 class="detail-section-title">基本参数</h3>
                            <div class="table-responsive">
                                <table class="table table-bordered">
                                    <tbody>
                                        <tr>
                                            <td width="30%">材质</td>
                                            <td>头层牛皮（封面）、环保纸张（内页）</td>
                                        </tr>
                                        <tr>
                                            <td>尺寸选项</td>
                                            <td>
                                                A6（105×148mm）<br>
                                                A5（148×210mm）<br>
                                                B5（176×250mm）
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>内页样式</td>
                                            <td>空白、横线、方格、点阵</td>
                                        </tr>
                                        <tr>
                                            <td>内页数量</td>
                                            <td>80张（160页）、120张（240页）</td>
                                        </tr>
                                        <tr>
                                            <td>颜色选项</td>
                                            <td>棕色、黑色、红色、蓝色（部分颜色需定制）</td>
                                        </tr>
                                        <tr>
                                            <td>定制范围</td>
                                            <td>封面压花文字、LOGO（需提供矢量文件）</td>
                                        </tr>
                                        <tr>
                                            <td>包装</td>
                                            <td>精美礼盒包装</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 配送信息 -->
                    <div class="tab-pane fade" id="shipping" role="tabpanel">
                        <div class="detail-section">
                            <h3 class="detail-section-title">配送说明</h3>
                            <div class="detail-content">
                                <p>定制商品下单后7天内发货，非定制商品3天内发货。</p>
                                <p>默认使用顺丰快递，全国大部分地区3-5天送达。</p>
                                <p>满299元免运费，不足299元收取15元运费。</p>
                            </div>
                        </div>
                        
                        <div class="detail-section">
                            <h3 class="detail-section-title">退换政策</h3>
                            <div class="detail-content">
                                <p>非定制商品支持收货后7天无理由退换，需保持商品原貌，不影响二次销售。</p>
                                <p>定制商品因个性化因素，不支持无理由退换，如有质量问题可联系客服协商解决。</p>
                                <p>退换货时请保留原包装和所有附件，以便顺利处理。</p>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 买家评价 -->
                    <div class="tab-pane fade" id="reviews" role="tabpanel">
                        <div class="detail-section">
                            <h3 class="detail-section-title">总体评价</h3>
                            <div class="d-flex align-items-center gap-3 mb-4">
                                <div class="text-center">
                                    <div class="display-4 font-weight-bold">4.9</div>
                                    <div class="text-warning">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star-half-alt"></i>
                                    </div>
                                </div>
                                
                                <div class="flex-1">
                                    <div class="d-flex justify-content-between mb-1">
                                        <span>5星</span>
                                        <span>85%</span>
                                    </div>
                                    <div class="progress mb-2">
                                        <div class="progress-bar bg-warning" role="progressbar" style="width: 85%" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100"></div>
                                    </div>
                                    
                                    <div class="d-flex justify-content-between mb-1">
                                        <span>4星</span>
                                        <span>12%</span>
                                    </div>
                                    <div class="progress mb-2">
                                        <div class="progress-bar bg-warning" role="progressbar" style="width: 12%" aria-valuenow="12" aria-valuemin="0" aria-valuemax="100"></div>
                                    </div>
                                    
                                    <div class="d-flex justify-content-between mb-1">
                                        <span>3星</span>
                                        <span>3%</span>
                                    </div>
                                    <div class="progress mb-2">
                                        <div class="progress-bar bg-warning" role="progressbar" style="width: 3%" aria-valuenow="3" aria-valuemin="0" aria-valuemax="100"></div>
                                    </div>
                                    
                                    <div class="d-flex justify-content-between mb-1">
                                        <span>2星</span>
                                        <span>0%</span>
                                    </div>
                                    <div class="progress mb-2">
                                        <div class="progress-bar bg-warning" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
                                    </div>
                                    
                                    <div class="d-flex justify-content-between mb-1">
                                        <span>1星</span>
                                        <span>0%</span>
                                    </div>
                                    <div class="progress">
                                        <div class="progress-bar bg-warning" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 这里会显示买家评价，与评论区类似 -->
                        <div class="detail-section">
                            <h3 class="detail-section-title">评价列表 (128)</h3>
                            <!-- 评价内容会在这里显示 -->
                            <div class="comments-list">
                                <!-- 评价示例1 -->
                                <div class="comment-card">
                                    <div class="comment-header">
                                        <div class="comment-author">
                                            <img src="https://picsum.photos/100/100?random=201" alt="王小明的头像" class="user-avatar">
                                            <div>
                                                <div class="author-name">王小明</div>
                                                <div class="comment-time">2023-05-15</div>
                                            </div>
                                        </div>
                                        <div class="text-warning">
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                        </div>
                                    </div>
                                    <div class="comment-content">
                                        皮质非常好，手感细腻，做工精细，定制的文字也很清晰。内页纸张质量不错，书写很流畅，非常满意的一次购物体验。
                                    </div>
                                </div>
                                
                                <!-- 评价示例2 -->
                                <div class="comment-card">
                                    <div class="comment-header">
                                        <div class="comment-author">
                                            <img src="https://picsum.photos/100/100?random=202" alt="李小华的头像" class="user-avatar">
                                            <div>
                                                <div class="author-name">李小华</div>
                                                <div class="comment-time">2023-05-10</div>
                                            </div>
                                        </div>
                                        <div class="text-warning">
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="far fa-star"></i>
                                        </div>
                                    </div>
                                    <div class="comment-content">
                                        笔记本质量很好，作为礼物送给朋友，朋友非常喜欢。唯一的小缺点是发货时间稍微有点长，不过值得等待。
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 评论区 -->
            <div class="comments-section">
                <div class="section-header">
                    <h2 class="section-title">
                        <i class="fas fa-comments me-2"></i> 留言讨论
                    </h2>
                    <span class="comments-count">共 28 条留言</span>
                </div>
                
                <!-- 评论表单 -->
                <div class="comment-form">
                    <div class="form-header">
                        <img src="https://picsum.photos/100/100?random=301" alt="当前用户的头像" class="user-avatar">
                        <div>
                            <div class="author-name">分享你的想法...</div>
                        </div>
                    </div>
                    <textarea class="comment-textarea" placeholder="写下你的留言..."></textarea>
                    <div class="form-actions">
                        <button class="cancel-btn">取消</button>
                        <button class="submit-btn" id="commentSubmit">发布留言</button>
                    </div>
                </div>
                
                <!-- 评论列表 -->
                <div class="comments-list">
                    <!-- 评论1 -->
                    <div class="comment-card">
                        <div class="comment-header">
                            <div class="comment-author">
                                <img src="https://picsum.photos/100/100?random=302" alt="张三的头像" class="user-avatar">
                                <div>
                                    <div class="author-name">张三</div>
                                    <div class="comment-time">2小时前</div>
                                </div>
                            </div>
                        </div>
                        <div class="comment-content">
                            这个笔记本看起来很精致，请问可以定制企业LOGO吗？我们公司想做一批礼品送给客户。
                        </div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment" data-id="1">
                                <i class="far fa-heart"></i>
                                <span>12</span>
                            </button>
                            <button class="comment-action reply-btn" data-id="1">
                                <i class="far fa-comment"></i>
                                <span>回复</span>
                            </button>
                        </div>
                        
                        <!-- 回复区 -->
                        <div class="replies-container" id="replies-1">
                            <!-- 回复1 -->
                            <div class="reply-card">
                                <div class="comment-header">
                                    <div class="comment-author">
                                        <img src="https://picsum.photos/100/100?random=101" alt="张小匠的头像" class="user-avatar">
                                        <div>
                                            <div class="author-name">张小匠 <span class="badge bg-primary">卖家</span></div>
                                            <div class="comment-time">1小时前</div>
                                        </div>
                                    </div>
                                </div>
                                <div class="comment-content">
                                    可以的，我们支持企业LOGO定制，需要您提供矢量格式的LOGO文件。批量定制还有优惠，您可以私信我具体数量和要求，我给您详细报价。
                                </div>
                                <div class="comment-actions">
                                    <button class="comment-action like-comment" data-id="1-1">
                                        <i class="far fa-heart"></i>
                                        <span>5</span>
                                    </button>
                                    <button class="comment-action reply-btn" data-id="1-1">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </button>
                                </div>
                            </div>
                            
                            <!-- 回复表单 -->
                            <div class="reply-form" id="reply-form-1" style="display: none;">
                                <textarea class="reply-textarea" placeholder="回复 @张三..."></textarea>
                                <div class="reply-actions">
                                    <button class="cancel-btn">取消</button>
                                    <button class="submit-btn reply-submit" data-id="1">发布回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评论2 -->
                    <div class="comment-card">
                        <div class="comment-header">
                            <div class="comment-author">
                                <img src="https://picsum.photos/100/100?random=303" alt="李四的头像" class="user-avatar">
                                <div>
                                    <div class="author-name">李四</div>
                                    <div class="comment-time">昨天 15:30</div>
                                </div>
                            </div>
                        </div>
                        <div class="comment-content">
                            我上个月买了一本，用了快一个月了，皮质越来越有质感，非常喜欢。内页纸张也很好，钢笔书写不洇墨，推荐购买！
                        </div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment" data-id="2">
                                <i class="fas fa-heart liked"></i>
                                <span>42</span>
                            </button>
                            <button class="comment-action reply-btn" data-id="2">
                                <i class="far fa-comment"></i>
                                <span>回复</span>
                            </button>
                        </div>
                        
                        <!-- 回复区 -->
                        <div class="replies-container" id="replies-2">
                            <!-- 回复表单 -->
                            <div class="reply-form" id="reply-form-2" style="display: none;">
                                <textarea class="reply-textarea" placeholder="回复 @李四..."></textarea>
                                <div class="reply-actions">
                                    <button class="cancel-btn">取消</button>
                                    <button class="submit-btn reply-submit" data-id="2">发布回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评论3 -->
                    <div class="comment-card">
                        <div class="comment-header">
                            <div class="comment-author">
                                <img src="https://picsum.photos/100/100?random=304" alt="王五的头像" class="user-avatar">
                                <div>
                                    <div class="author-name">王五</div>
                                    <div class="comment-time">3天前</div>
                                </div>
                            </div>
                        </div>
                        <div class="comment-content">
                            请问有A4尺寸的吗？我需要大一点的笔记本用来画草图。
                        </div>
                        <div class="comment-actions">
                            <button class="comment-action like-comment" data-id="3">
                                <i class="far fa-heart"></i>
                                <span>3</span>
                            </button>
                            <button class="comment-action reply-btn" data-id="3">
                                <i class="far fa-comment"></i>
                                <span>回复</span>
                            </button>
                        </div>
                        
                        <!-- 回复区 -->
                        <div class="replies-container" id="replies-3">
                            <!-- 回复1 -->
                            <div class="reply-card">
                                <div class="comment-header">
                                    <div class="comment-author">
                                        <img src="https://picsum.photos/100/100?random=101" alt="张小匠的头像" class="user-avatar">
                                        <div>
                                            <div class="author-name">张小匠 <span class="badge bg-primary">卖家</span></div>
                                            <div class="comment-time">2天前</div>
                                        </div>
                                    </div>
                                </div>
                                <div class="comment-content">
                                    目前最大的是B5尺寸，A4尺寸的暂时没有，主要是考虑到便携性。如果需要的话可以给您定制，不过价格会稍高一些，而且制作时间也会 longer。
                                </div>
                                <div class="comment-actions">
                                    <button class="comment-action like-comment" data-id="3-1">
                                        <i class="far fa-heart"></i>
                                        <span>1</span>
                                    </button>
                                    <button class="comment-action reply-btn" data-id="3-1">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </button>
                                </div>
                            </div>
                            
                            <!-- 回复表单 -->
                            <div class="reply-form" id="reply-form-3" style="display: none;">
                                <textarea class="reply-textarea" placeholder="回复 @王五..."></textarea>
                                <div class="reply-actions">
                                    <button class="cancel-btn">取消</button>
                                    <button class="submit-btn reply-submit" data-id="3">发布回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 加载更多评论 -->
                <button class="load-more" id="loadMoreComments">
                    加载更多评论
                </button>
            </div>
            
            <!-- 相关推荐 -->
            <div class="related-supplies">
                <div class="section-header">
                    <h2 class="section-title">
                        <i class="fas fa-th-list me-2"></i> 相关推荐
                    </h2>
                </div>
                
                <div class="related-list">
                    <div class="related-item">
                        <img src="https://picsum.photos/400/300?random=10" alt="手工皮革钱包" class="related-image">
                        <div class="related-info">
                            <div class="related-title">手工皮革钱包 - 简约风格</div>
                            <div class="related-price">¥158.00</div>
                        </div>
                    </div>
                    
                    <div class="related-item">
                        <img src="https://picsum.photos/400/300?random=11" alt="手工皮质笔记本套装" class="related-image">
                        <div class="related-info">
                            <div class="related-title">手工皮质笔记本套装 - 含钢笔</div>
                            <div class="related-price">¥298.00</div>
                        </div>
                    </div>
                    
                    <div class="related-item">
                        <img src="https://picsum.photos/400/300?random=12" alt="手工皮革手机壳" class="related-image">
                        <div class="related-info">
                            <div class="related-title">手工皮革手机壳 - 可定制</div>
                            <div class="related-price">¥89.00</div>
                        </div>
                    </div>
                    
                    <div class="related-item">
                        <img src="https://picsum.photos/400/300?random=13" alt="手工皮质书签" class="related-image">
                        <div class="related-info">
                            <div class="related-title">手工皮质书签 - 套装3枚</div>
                            <div class="related-price">¥59.00</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
    <!-- 图片查看器脚本 -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.1/lightgallery.min.js"></script>
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 初始化图片查看器
            const mainImageContainer = document.getElementById('mainImageContainer');
            const mainImage = document.getElementById('mainImage');
            const thumbnails = document.querySelectorAll('.thumbnail-item');
            
            // 缩略图切换主图
            thumbnails.forEach(thumbnail => {
                thumbnail.addEventListener('click', function() {
                    // 移除所有缩略图的active类
                    thumbnails.forEach(thumb => thumb.classList.remove('active'));
                    // 给当前点击的缩略图添加active类
                    this.classList.add('active');
                    // 更新主图
                    const newImage = this.querySelector('.thumbnail-image').getAttribute('data-img');
                    mainImage.setAttribute('src', newImage);
                });
            });
            
            // 图片查看器
            lightgallery(mainImageContainer, {
                plugins: [],
                dynamic: true,
                dynamicEl: [
                    { src: 'https://picsum.photos/800/600?random=1', alt: '手工皮革笔记本正面展示' },
                    { src: 'https://picsum.photos/800/600?random=2', alt: '手工皮革笔记本侧面展示' },
                    { src: 'https://picsum.photos/800/600?random=3', alt: '手工皮革笔记本内页展示' },
                    { src: 'https://picsum.photos/800/600?random=4', alt: '手工皮革笔记本定制压花展示' }
                ]
            });
            

            
            // 关注按钮
            const followBtn = document.getElementById('followBtn');
            followBtn.addEventListener('click', function() {
                if (this.innerHTML.includes('关注')) {
                    this.innerHTML = '<i class="fas fa-check me-1"></i> 已关注';
                    this.classList.remove('btn-outline-primary');
                    this.classList.add('btn-primary');
                    showNotification('已关注 张小匠');
                } else {
                    this.innerHTML = '<i class="far fa-user-plus me-1"></i> 关注';
                    this.classList.remove('btn-primary');
                    this.classList.add('btn-outline-primary');
                    showNotification('已取消关注');
                }
            });
            
            // 收藏按钮
            const likeBtn = document.getElementById('likeBtn');
            likeBtn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const countText = this.querySelector('span').textContent;
                let count = parseInt(countText.match(/\d+/)[0]);
                
                if (icon.classList.contains('far')) {
                    // 收藏
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    count++;
                    showNotification('已收藏该供给');
                } else {
                    // 取消收藏
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    count--;
                    showNotification('已取消收藏');
                }
                
                // 更新计数
                this.querySelector('span').textContent = `收藏 (${count})`;
            });
            
            // 购买和加入购物车按钮
            const buyBtn = document.getElementById('buyBtn');
            buyBtn.addEventListener('click', function() {
                showNotification('即将跳转到结算页面');
            });
            
            const addCartBtn = document.getElementById('addCartBtn');
            addCartBtn.addEventListener('click', function() {
                showNotification('已加入购物车');
            });
            
            // 分享按钮
            const shareBtn = document.getElementById('shareBtn');
            shareBtn.addEventListener('click', function() {
                showNotification('分享链接已复制到剪贴板');
            });
            
            // 评论提交
            const commentSubmit = document.getElementById('commentSubmit');
            commentSubmit.addEventListener('click', function() {
                const textarea = document.querySelector('.comment-textarea');
                if (textarea.value.trim() === '') {
                    showNotification('请输入留言内容');
                    return;
                }
                
                showNotification('留言发布成功');
                textarea.value = '';
            });
            
            // 回复按钮
            const replyBtns = document.querySelectorAll('.reply-btn');
            replyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const commentId = this.getAttribute('data-id');
                    const replyForm = document.getElementById(`reply-form-${commentId}`);
                    
                    // 隐藏所有回复表单
                    document.querySelectorAll('.reply-form').forEach(form => {
                        form.style.display = 'none';
                    });
                    
                    // 显示当前评论的回复表单
                    replyForm.style.display = 'flex';
                });
            });
            
            // 取消回复
            document.querySelectorAll('.cancel-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const replyForm = this.closest('.reply-form');
                    if (replyForm) {
                        replyForm.style.display = 'none';
                        replyForm.querySelector('textarea').value = '';
                    }
                });
            });
            
            // 提交回复
            const replySubmits = document.querySelectorAll('.reply-submit');
            replySubmits.forEach(btn => {
                btn.addEventListener('click', function() {
                    const commentId = this.getAttribute('data-id');
                    const replyForm = document.getElementById(`reply-form-${commentId}`);
                    const textarea = replyForm.querySelector('textarea');
                    
                    if (textarea.value.trim() === '') {
                        showNotification('请输入回复内容');
                        return;
                    }
                    
                    showNotification('回复发布成功');
                    textarea.value = '';
                    replyForm.style.display = 'none';
                });
            });
            
            // 评论点赞
            const likeButtons = document.querySelectorAll('.like-comment');
            likeButtons.forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countSpan = this.querySelector('span');
                    let count = parseInt(countSpan.textContent);
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('liked');
                        count++;
                        showNotification('点赞成功');
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('liked');
                        count--;
                        showNotification('已取消点赞');
                    }
                    
                    countSpan.textContent = count;
                });
            });
            
            // 加载更多评论
            const loadMoreComments = document.getElementById('loadMoreComments');
            loadMoreComments.addEventListener('click', function() {
                this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 加载中...';
                this.disabled = true;
                
                // 模拟加载延迟
                setTimeout(() => {
                    this.innerHTML = '加载更多评论';
                    this.disabled = false;
                    showNotification('已加载更多评论');
                    
                    // 实际应用中这里会加载并添加新评论
                }, 1500);
            });
        });
    </script>
</body>
</html>

